package com.yonyou.cyxdms.basedata.service.service.questionaire;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yonyou.cyxdms.basedata.service.dto.questionaire.AnswerGroupDTO;
import com.yonyou.cyxdms.basedata.service.dto.questionaire.QueryAnswerDTO;
import com.yonyou.cyxdms.basedata.service.dto.questionaire.QuestionDTO;
import com.yonyou.cyxdms.basedata.service.vo.questionaire.AnswerGroupVO;
import com.yonyou.cyxdms.basedata.service.vo.questionaire.AnswerVO;
import com.yonyou.cyxdms.basedata.service.vo.questionaire.QuestionGroupVO;

import java.util.List;

/**
 * <p>
 * 答案组 服务类
 * </p>
 *
 * @author renwd
 * @since 2019-09-19
 */
public interface AnswerGroupService {

    /**
     * 答案信息查询
     *
     * @param page
     * @param queryAnswerDTO
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.yonyou.cyxdms.basedata.service.vo.questionaire.AnswerGroupVO>
     * @author renwd
     * @since 2019/9/19
     */
    IPage<AnswerGroupVO> queryAnswerGroupInfo(Page<AnswerGroupVO> page, QueryAnswerDTO queryAnswerDTO);

    /**
     * 根据答案组id查询答案信息(分页)
     *
     * @param page
     * @param answerGroupId
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.yonyou.cyxdms.basedata.service.vo.questionaire.AnswerVO>
     * @author renwd
     * @since 2019/9/19
     */
    IPage<AnswerVO> queryAnswerInfoById(Page<AnswerVO> page, Long answerGroupId);

    /**
     * 根据答案组id查询答案信息(不分页)
     *
     * @param answerGroupId
     * @return java.util.List<com.yonyou.cyxdms.basedata.service.vo.questionaire.AnswerVO>
     * @author renwd
     * @since 2019/9/24
     */
    List<AnswerVO> listAnswerInfoById(Long answerGroupId);

    /**
     * 根据答案组id查询答案组信息
     *
     * @param answerGroupId
     * @return com.yonyou.cyxdms.basedata.service.vo.questionaire.AnswerGroupVO
     * @author renwd
     * @since 2019/9/19
     */
    AnswerGroupVO queryAnswerGroupById(Long answerGroupId);

    /**
     * 新增答案
     *
     * @param answerGroupDTO
     * @return java.lang.Integer
     * @author renwd
     * @since 2019/9/19
     */
    Integer insertAnswerInfo(AnswerGroupDTO answerGroupDTO);

    /**
     * 修改答案
     *
     * @param answerGroupDTO
     * @return java.lang.Integer
     * @author renwd
     * @since 2019/9/19
     */
    Integer updateAnswerInfo(AnswerGroupDTO answerGroupDTO);

    /**
     * 删除答案组
     *
     * @param answerGroupId
     * @return java.lang.Integer
     * @author renwd
     * @since 2019/9/19
     */
    Integer deleteAnswerGroupInfo(Long answerGroupId);


}
